import Vue from "vue";
import Router from "vue-router";
Vue.use(Router);
const router = new Router({
  mode: "history",
  routes: [
    {
      path: "/",
      name: "首页",
      component: () => import(/* webpackChunkName: "page" */ "@/page/index"),
    },
    // {
    //   path: "/edit",
    //   name: "编辑",
    //   component: () => import(/* webpackChunkName: "page" */ "@/page/edit"),
    //   meta: {
    //     title: "编辑",
    //   },
    // },
    {
      path: "/img",
      name: "imag",
      component: () =>
        import(/* webpackChunkName: "page" */ "@/components/Carousel"),
      meta: {
        title: "编辑",
      },
    },
  ],
});
export default router;
